<template>
    MyRight组件
</template>
<script setup>
import { ref ,onDeactivated,onActivated} from 'vue'
onActivated(()=>{
    console.log('MR激活了')
})

onDeactivated(()=>{
    console.log('MR缓存了')
})
</script>